<template>
  <div id="app">

    <div id="aside">

      <el-menu router="true">
        <el-menu-item index="/dashboard">
          <i class="el-icon-user-solid"></i>
          <span slot="title">
          个人信息
          </span>
        </el-menu-item>
        <el-submenu index="2">
          <template slot="title">
            <i class="el-icon-menu"></i>
            <span>博客管理</span>
          </template>
          <el-menu-item index="/newblog">
            <i class="el-icon-receiving"></i>
            <span> 草稿箱</span>
          </el-menu-item>
          <el-menu-item index="/blog">
            <i class="el-icon-document"></i>
            <span>博客列表</span></el-menu-item>
        </el-submenu>
        <el-submenu>
          <template slot="title">
            <i class="el-icon-menu"></i><span>专题管理</span>
          </template>
          <el-menu-item index="/newclass">
            <i class="el-icon-edit"></i><span>新建专题</span>
          </el-menu-item>
          <el-menu-item index="/class">
            <i class="el-icon-notebook-2"></i><span>专题列表</span>
          </el-menu-item>
        </el-submenu>
        <el-menu-item index="/collection">
          <i class="el-icon-star-on"></i>
          <span slot="title">
          我的收藏
          </span>
        </el-menu-item>
        <el-menu-item index="/follow">
          <i class="el-icon-s-comment"></i>
          <el-badge :value="'new'" class="item">
            <el-button size="text">我的消息</el-button>
          </el-badge>

        </el-menu-item>
      </el-menu>

    </div>
    <div id="main">
      <router-view/>
    </div>
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style>
.item {
  margin-top: 0px;
  margin-right: 0px;
}
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

}

#top {
  padding: 0px;
  position: absolute;
  height: 50px;
  line-height: 50px;

  top: 0px;
  left: 0px;
  right: 0px;
  background-color: #409EFF;
  color: #FFFFFF;
}

#main {
  position: absolute;
  top: 50px;
  left: 230px;
  right: 0px;
  bottom: 0px;
}

#aside {
  position: absolute;
  left: 0px;
  top: 69px;
  width: 230px;
  bottom: 0px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1)
}

#aside el-menu {
  margin: 0px;

}

#footer {
  position: absolute;
  bottom: 0px;
  left: 230px;
  right: 0px;
  text-align: center;
  height: 30px;
  background-color: aqua;
  line-height: 30px;
}
.title{
  font-weight: bold;
  color: aliceblue;
}
</style>
